function [pred_class, confidence, error_log] = BayesLinearRegression(train_data, test_data, class, displayFlag)

if nargin < 4
    displayFlag = 0;
end

[w, error_log] = blr_train(train_data, class);
[pred_class, confidence] = blr_classify(test_data, w, class, displayFlag);

end